steal many content from sequenceiq's buildfile