I have discovered my problem it was because the paths are not relative. I solved it by calling kernel32.dll and finding the application path then cutting off the application name. There seems to be no commands in db to find app path they all return either my documents or windows directory.
for anyone interested, found that weird 1234567890 string on the forum dunno why it works but u seem to need it when calling the dll
+ Code Snippetload dll "kernel32.dll",2
a$="0123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789"
enviroment=call dll(2,"GetModuleFileNameA",0,a$,250)
delete dll 2
while right$(a$,1)<>"\"
a$=left$(a$,len(a$)-1)
endwhile