refactored ant build in order to improve it later