add helper methods for bcrypt