updated for gradle build system