fixes

fixed buildscript
fixed resoruces
fixed obfuscated, deobfuscatred functionality!