bug fixes

updated to 0.5