aliases support, compilation fixing and some minor fixes