added code for IDE-like integration with gems