improved inheritance lib and deploy script