fixing targz and implementing simple bin