fixed package build system a bit
some event things