bug and style fix, added 'cd $srcdir' in prepare()
style fix, added prepare() - compile error still exist
compile errors - needs to be examined
compile errors needs to be examined
errors - needs to be examined
errors - needs to be examined