take release directory as first argument