build script, thanks ayysir