added dev and dist build modes