updated to work with bower v1