bug fixes for alchemy class