simplified
dev object is global